package com.blog.personalblog.mapper;


import com.blog.personalblog.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    List<User> findAll();

    void insert(User user);

    void update(User user);

    int delete(int id);

    User getUserById(Integer userId);

    User findByUsername(String userName);

    void updateById(User user);
}
